/*    */ package com.umeng.newxp.net;
/*    */ 
/*    */ import android.content.Context;
/*    */ import android.content.res.Resources;
/*    */ import android.widget.Toast;
/*    */ import com.umeng.common.Log;
/*    */ import com.umeng.common.net.l;
/*    */ import com.umeng.newxp.Promoter;
/*    */ import com.umeng.newxp.common.ExchangeConstants;
/*    */ import com.umeng.newxp.common.g;
/*    */ 
/*    */ public class c
/*    */ {
/* 17 */   private static final String b = c.class.getName();
/*    */   static final String a = "xp";
/*    */   private Context c;
/*    */   private com.umeng.common.net.a d;
/*    */   private e e;
/*    */   private Promoter f;
/*    */ 
/*    */   public c(Context paramContext, Promoter paramPromoter, e.a parama)
/*    */   {
/* 26 */     this.c = paramContext;
/* 27 */     this.f = paramPromoter;
/* 28 */     this.e = parama.a();
/* 29 */     this.d = new com.umeng.common.net.a(this.c.getApplicationContext(), "xp", 
/* 30 */       paramPromoter.title, paramPromoter.url, new a());
/*    */ 
/* 33 */     e locale = parama.a(1).a();
/* 34 */     if (locale != null) {
/* 35 */       String str = locale.e();
/* 36 */       if (str.startsWith("?"))
/* 37 */         str = str.substring(1);
/* 38 */       String[] arrayOfString1 = a.getReprotList();
/* 39 */       String[] arrayOfString2 = new String[arrayOfString1.length];
/* 40 */       for (int i = 0; i < arrayOfString1.length; i++) {
/* 41 */         arrayOfString2[i] = (arrayOfString1[i] + str);
/*    */       }
/* 43 */       this.d.a(arrayOfString2);
/*    */ 
/* 45 */       if ((ExchangeConstants.RICH_NOTIFICATION) && (13 < g.e()))
/* 46 */         this.d.a(true);
/*    */       else
/* 48 */         this.d.a(false);
/*    */     }
/*    */   }
/*    */ 
/*    */   public void a() {
/* 53 */     Log.c(b, "start Download.");
/* 54 */     this.d.a();
/*    */   }
/*    */   public class a implements l {
/*    */     private String b;
/*    */     private com.umeng.common.net.c c;
/*    */ 
/*    */     public a() {
/* 62 */       this.b = c.a(c.this).url;
/* 63 */       this.c = com.umeng.common.net.c.a(c.b(c.this));
/*    */     }
/*    */ 
/*    */     public void a() {
/* 67 */       Log.c(c.b(), "XpDownloadListener.onStart");
/*    */ 
/* 69 */       if (ExchangeConstants.TIPS_DOWNLOAD) {
/* 70 */         Toast.makeText(c.b(c.this), c.b(c.this).getResources().getString(com.umeng.common.c.a(c.b(c.this)).g("umeng_xp_tip_download_pre")) + c.a(c.this).title, 0).show();
/*    */       }
/*    */ 
/* 73 */       if (c.c(c.this) != null) {
/* 74 */         new XpReportClient(c.b(c.this)).sendAsync(c.c(c.this), null);
/*    */       }
/*    */ 
/* 80 */       this.c.a("xp", this.b);
/*    */     }
/*    */ 
/*    */     public void a(int paramInt)
/*    */     {
/* 86 */       Log.c(c.b(), "XpDownloadListener.onProgressUpdate");
/*    */     }
/*    */ 
/*    */     public void a(int paramInt1, int paramInt2, String paramString)
/*    */     {
/* 91 */       Log.c(c.b(), "XpDownloadListener.onEndresult = " + paramInt1 + " file = " + paramString);
/* 92 */       if (paramInt1 == 1)
/*    */       {
/* 113 */         this.c.e("xp", this.b);
/*    */       }
/*    */     }
/*    */ 
/*    */     public void b(int paramInt)
/*    */     {
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.newxp.net.c
 * JD-Core Version:    0.6.2
 */